backend = "glx";
# backend = "xrender";
# xrender-sync-fence = true;
# glx-no-stencil = true;
glx-copy-from-front = true;
# vsync = true;


fading = true;
fade-delta = 5;
fade-in-step = 0.025;
fade-out-step = 0.04;
# no-fading-openclose = true;

fade-exclude = [ ];

# shadow = true;
# shadow-radius = 10;

# shadow-offset-x = 0;
# shadow-offset-y = 0;
# shadow-opacity = 0.6;

# shadow-ignore-shaped = false;
# shadow-exclude = [
#     "! name~=''",
#     "name = 'Notification'",
#     "_GTK_FRAME_EXTENTS@:c"
# ];

active-opacity = 0.98;
inactive-opacity = 0.9;
# frame-opacity = 0.1;
inactive-opacity-override = true;
# inactive-dim = 0.2;

opacity-rule = [
  "95:class_g = 'Termite' && focused",
  # "90:class_g = 'Termite' && !focused",

  "95:class_g = 'Telegram' && focused",
  "100:class_g = 'mpv' && focused",
  "100:class_g = 'mpv' && !focused",
#   "90:class_g = 'Tor Browser' && focused",
];

mark-ovredir-focused = true;
mark-wmwin-focused = true;
unredir-if-possible = false;

# misc
# detect-client-opacity = true;
# use-ewmh-active-win = true;
# dbe = false;
# detect-transient = true;
# detect-client-leader = true;


wintypes:
{
    tooltip = {
        fade = true;
        opacity = 0.9;
        focus = true;
    };

    popup_menu = {
        fade = true
        opacity = 0.95;
    };
    dropdown_menu =
    {
        opacity = 0.9;
    };
};
